﻿using System;
using System.ComponentModel.DataAnnotations;
using NPoco;

namespace Blog.Core.Entity
{
    [TableName("Post")]
    [PrimaryKey("Id")]
    public class Posts : Record<Posts>
    {
        public int Id { get; set; }

        [Required(ErrorMessage = "标题必填")]
        public string Title { get; set; }
        public string Content { get; set; }
        public int CategoryId { get; set; }
        public DateTime CreateTime { get; set; }
        public string Summary { get; set; }
    }
}